package com.cmc.cloud.cmclink.doc.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import com.cmes.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;

import static com.cmes.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

/**
 * {table.classComment}分页 Request VO
 * 
 * @author codegen
 */
@Schema(description = "管理后台 - 基础数据配置信息分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class BaseCodePageReqVO extends PageParam {

    @Schema(description = "代码")
    private String code;

    @Schema(description = "代码类型")
    @NotBlank(message = "{BaseCodePageReqVO.codeCategory.notblank}")
    private String codeCategory;

    @Schema(description = "中文名称")
    private String descCn;

    @Schema(description = "英文名称")
    private String descEn;

    @Schema(description = "网厅显示")
    private Boolean ebShow;

    @Schema(description = "港口")
    private String portCode;

    @Schema(description = "排序号")
    private String sortNo;

    @Schema(description = "是否启用")
    private Boolean enable;

    @Schema(description = "备注", example = "你说的对")
    private String remark;

    @Schema(description = "类型")
    private String type;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime createTime;

    @Schema(description = "关键词")
    private String keyWord;

}
